package com.teira.rhrrealstate.session;

import com.teira.rhrrealstate.entity.*;
import org.jboss.seam.annotations.Name;
import org.jboss.seam.framework.EntityHome;

@Name("zonaGeograficaHome")
public class ZonaGeograficaHome extends EntityHome<ZonaGeografica> {

	public void setZonaGeograficaId(Long id) {
		setId(id);
	}

	public Long getZonaGeograficaId() {
		return (Long) getId();
	}

	@Override
	protected ZonaGeografica createInstance() {
		ZonaGeografica zonaGeografica = new ZonaGeografica();
		return zonaGeografica;
	}

	public void load() {
		if (isIdDefined()) {
			wire();
		}
	}

	public void wire() {
		getInstance();
	}

	public boolean isWired() {
		return true;
	}

	public ZonaGeografica getDefinedInstance() {
		return isIdDefined() ? getInstance() : null;
	}

}
